﻿using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace PocketDOHS
{
    public partial class LstTbl : Form
    {
        private LstTbl2 NextForm;
        
        public LstTbl()
        {
            InitializeComponent();
        }

        private void btnGravar_Click(object sender, EventArgs e)
        {
            if (NextForm == null || NextForm.IsDisposed)
            {
                NextForm = new LstTbl2(this);
                NextForm.Show();
            }
            else
                NextForm.BringToFront();
        }

        private void btnCancelar_Click(object sender, EventArgs e)
        {
            if (NextForm == null || NextForm.IsDisposed)
                this.Close();
            else
            {
                NextForm.Close();
                this.Close();
            }
        }
  
    }
}